;; -------------------------------------------------------------------------------------------------------	
;; -------------------------------------------------------------------------------------------------------	
;; ETIQUETAS
;; -------------------------------------------------------------------------------------------------------
;; -------------------------------------------------------------------------------------------------------	

	;; -----------------------------------------------------------------------------------------------
	;; VARIABLES DE LA RAM
	;; -----------------------------------------------------------------------------------------------

		;; ---------------------------------------------------------------------------------------
		;; MEMORIA DE BIT
		;; ---------------------------------------------------------------------------------------
	
		LCD_PEND		BIT	00H	; LCD -- GLOBAL
		LCD_PEND_TIME		BIT	01H	; LCD
		LCD_PEND_MENU		BIT	02H	; LCD
		LCD_PEND_MOTOR		BIT	03H	; LCD
		MENU_PEND		BIT	04H	; MENU -- GLOBAL
		MENU_PEND_UP		BIT	05H	; MENU
		MENU_PEND_LEFT		BIT	06H	; MENU
		MENU_PEND_RIGHT		BIT	07H	; MENU
		MENU_PEND_DOWN		BIT	08H	; MENU
		;;M1_DIR			BIT	09H	; MOTOR
		;;M1_STATUS		BIT	0AH	; MOTOR

		;; ---------------------------------------------------------------------------------------
		;; MEMORIA
		;; ---------------------------------------------------------------------------------------
	
		CLK_HORAS		IDATA	0030H	; RELOJ 
		CLK_MIN			IDATA	0031H
		CLK_SEG			IDATA	0032H
		CLK_COUNT		IDATA	0033H
		
		MENU_NODO1		IDATA	0034H	; MENU
		MENU_NODO2		IDATA	0035H
		MENU_NODO3		IDATA	0036H
		MENU_NODO4		IDATA	0037H
		MENU_NODO5		IDATA	0038H


	;; -----------------------------------------------------------------------------------------------
	;; VARIABLES 
	;; -----------------------------------------------------------------------------------------------

	TIME		EQU	15536	; 65536 - 50000	

	
	;; -----------------------------------------------------------------------------------------------
	;; PUERTOS/"PATILLAS"
	;; -----------------------------------------------------------------------------------------------

	M1		EQU	P1.0
	EN		EQU 	P1.5
	RW		EQU 	P1.6
	RS		EQU 	P1.7
		
	DAT		EQU	P2	
	DB0		EQU	P2.0
	DB1		EQU 	P2.1
	DB2		EQU	P2.2
	DB3	 	EQU 	P2.3
	DB4	 	EQU 	P2.4
	DB5		EQU 	P2.5
	DB6		EQU 	P2.6
	DB7		EQU 	P2.7
